extends layout 

block content 

    h1 #{title}

    form(method='post')
      .form-group 
        label(for='name') Genre: 
        input#name.form-control(type='text', placeholder='Fantasy, Poetryetc.' name='name' required value=(undefined=== genre) ? '' : genre.name)
      button.btn.btn-primary(type='submit') Submit

    if errors 
      ul 
        each error in errors 
          li!= error.msg